<?php

/**
 * Created by PhpStorm.
 * User: yf
 * Date: 2018/3/5
 * Time: 下午10:36
 */
namespace App\Server;

use EasySwoole\Core\Swoole\ServerManager;
use Swoole\Server;

class SwooleServer {
	public function getServer(): Server {
		return ServerManager::getInstance ()->getServer ();
	}
	public function push($fd, $message) {
		$this->getServer ()->push ( $fd, $message );
	}
}